package iotwisp.school.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import iotwisp.base.orm.StringIdBaseEntity;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author yuxx
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@DynamicUpdate
@Entity
@Table(name = M.TABLE_PREFIX + "province")
@SuppressWarnings("serial")
public class Province extends StringIdBaseEntity {

        /**
        * 名称
        */
        @Column(name = "name", length = 32)
        private String name;

        /**
        * 代码
        */
        @Column(name = "code", length = 16)
        private String code;

}
